home *** CD-ROM | disk | FTP | other *** search
/ US Department of Defense…ndamentals 1.0 2004 April / US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso / sco / interface / map.swf / scripts / frame_3 / DoAction.as < prev   
Encoding:
Text File  |  2004-03-29  |  1.1 KB  |  69 lines

  1. function load_main()
  2. {
  3.    getUrl("javascript:goto_menu();", "");
  4.    exit();
  5. }
  6. function load_resources()
  7. {
  8.    _level10.stop();
  9.    loadMovieNum("interface/resources.swf",14,"GET");
  10. }
  11. function unload_resources()
  12. {
  13.    restart();
  14.    unloadMovieNum(14);
  15. }
  16. function load_objectives()
  17. {
  18.    objectives_open = true;
  19.    _level10.stop();
  20.    loadMovieNum("interface/objectives.swf",13,"GET");
  21. }
  22. function unload_objectives()
  23. {
  24.    objectives_open = false;
  25.    restart();
  26.    unloadMovieNum(13);
  27. }
  28. function load_coursemap()
  29. {
  30.    getUrl("javascript:open_map();", "");
  31. }
  32. function load_glossary()
  33. {
  34.    _level10.stop();
  35.    if(_level19._currentframe != 30)
  36.    {
  37.       loadMovieNum("interface/glossary.swf",19,"GET");
  38.    }
  39. }
  40. function unload_glossary()
  41. {
  42.    restart();
  43.    unloadMovieNum(19);
  44. }
  45. function exit()
  46. {
  47.    x = 50;
  48.    while(x > 1)
  49.    {
  50.       if(x != 19)
  51.       {
  52.          getURL("","_level" add x);
  53.       }
  54.       x--;
  55.    }
  56. }
  57. function restart()
  58. {
  59.    if(_level10._currentframe == _level10._totalframes)
  60.    {
  61.       _level10.stop();
  62.    }
  63.    else
  64.    {
  65.       _level10.play();
  66.    }
  67. }
  68. _root.external_call = true;
  69.